package com.lindroy.gankmvp.mvp.contract

import com.lindroy.gankmvp.mvp.base.IModel
import com.lindroy.gankmvp.mvp.base.IPresenter
import com.lindroy.gankmvp.mvp.base.IView
import com.lindroy.gankmvp.mvp.model.bean.CategoryResp
import com.lindroy.gankmvp.mvp.model.bean.HttpResult
import io.reactivex.Observable

/**
 * @author Lin
 * @date 2021/7/2
 * @function
 */
interface CategoryContract {

    interface View:IView{
        fun showCategory(data:List<CategoryResp>)
    }

    interface Presenter:IPresenter<View>{
        fun getCategory()
    }

    interface Model:IModel{
        fun getCategory(): Observable<HttpResult<List<CategoryResp>>>
    }
}